{foreach from=$tableRows key=rowKey item=row}
<tr rowKey="{$rowKey}" class="row" id="row-{$row.id}">
    {foreach from=$row key=columnKey item=column}
    <td id="td-{$rowKey}-{$columnKey}">{$column}</td>
    {/foreach}
    {if $formRights.edit == 1}
    <td class="edit"><a class="gfxButton edit" href="index.php?type=form&action=open&id={$row.id}"></a></td>
    <td class="edit"><input class="multiEdit" id="{$row.id}" type="checkbox" /></td>
    {elseif $formRights.edit == 0 and $formRights.display == 1}
    <td class="edit"><a href="index.php?type=form&action=open&id={$row.id}">pokaż</a></td>
    {/if}
</tr>
{/foreach}
{if $formRights.edit == 1}
<script type="text/javascript">dbClickEdit();</script>
{/if}
<script type="text/javascript">tableOnLoad()</script>